<%@page import="com.tjsinfo.tjsoa.check.vo.TCheckEmployee"%>
<%@page import="com.tjsinfo.tjsoa.common.ToolKit"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
List yearmonthstr = (List)request.getAttribute("yearmonthstr");
List yearList = (List)request.getAttribute("yearList");
List yearhatestr = (List)request.getAttribute("yearhatestr");
Integer year = (Integer)request.getAttribute("year");
Integer upYear = year - 1;
Integer downYear = year + 1;
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'checkEmployeemain.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<link rel="stylesheet" type="text/css"
	href="<%=basePath%>/ajaxFramework/jquery-easyui-1.3.2/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>/ajaxFramework/jquery-easyui-1.3.2/themes/icon.css" />
<style type="text/css">
	.table-trtd  tr td {padding: 20px;text-align: center;}
	a {color:#252525; text-decoration:none;} 
	a:visited {text-decoration:none;} 
	a:hover {color:#ba2636;text-decoration:underline;} 
	a:active {color:#ba2636;}  
</style>	
<script type="text/javascript"
	src="<%=basePath%>/ajaxFramework/jquery-easyui-1.3.2/jquery-1.8.0.min.js"></script>
<script type="text/javascript"
	src="<%=basePath%>/ajaxFramework/jquery-easyui-1.3.2/jquery.easyui.min.js"></script>
<script type="text/javascript">
		
      	$(function () {
      		var bodywidth =  $("body").width();
      		$(".table-trtd").each(function(){
      			$(this).width(bodywidth-100);
      		});
    	});
      
		function f_submit(year){
			$("#year").val(year);
			document.form1.submit();
		}
		
		function departmentSummary(yearhatestr){
			$("#yearmonthstr").val(yearhatestr);
			$("form[name=form1]").attr("action","<%=basePath %>tjsinfo/tjsoa/articles/Summary.do");
			document.form1.submit();
		}
	</script>
</head>

<body>
	<form action="<%=basePath %>tjsinfo/tjsoa/articles/Summary.do?method=summaryMain" method="post" name="form1" >
	

	<div id="monthsummary" class="easyui-panel" title="月度工作总结" style="height:300px;padding:10px;">
		<%
			if(year > 2018)
			{
		%>
			<a href="javascript:f_submit(<%=upYear%>)" class="easyui-linkbutton" >上一年</a>
		<% 		
			}
		%>
		
		<a href="javascript:f_submit(<%=downYear%>)" class="easyui-linkbutton" >下一年</a>
		<table class="table-trtd">
			<tr>
				<%
					for(int i=0;i<=2;i++)
					{
						
				%>
					<td><a href="<%=basePath%>tjsinfo/tjsoa/articles/Summary.do?method=departmentSummary&yearmonthstr=<%=(String)yearmonthstr.get(i) %>"><%=((String)yearmonthstr.get(i)).replace("-", "年") %>月工作总结</a></td>
				<%
					}
				%>
			</tr>
			<tr>
				<%
					for(int i=3;i<=5;i++)
					{
						
				%>
					<td><a href="<%=basePath%>tjsinfo/tjsoa/articles/Summary.do?method=departmentSummary&yearmonthstr=<%=(String)yearmonthstr.get(i) %>"><%=((String)yearmonthstr.get(i)).replace("-", "年") %>月工作总结</a></td>
				<%
					}
				%>
			</tr>
			<tr>
				<%
					for(int i=6;i<=8;i++)
					{
						
				%>
					<td><a href="<%=basePath%>tjsinfo/tjsoa/articles/Summary.do?method=departmentSummary&yearmonthstr=<%=(String)yearmonthstr.get(i) %>"><%=((String)yearmonthstr.get(i)).replace("-", "年") %>月工作总结</a></td>
				<%
					}
				%>
			</tr>
			<tr>
				<%
					for(int i=9;i<=11;i++)
					{
						
				%>
					<td><a href="<%=basePath%>tjsinfo/tjsoa/articles/Summary.do?method=departmentSummary&yearmonthstr=<%=(String)yearmonthstr.get(i) %>"><%=((String)yearmonthstr.get(i)).replace("-", "年") %>月工作总结</a></td>
				<%
					}
				%>
			</tr>
		</table>
		
	</div>
	<div id="yearhate" class="easyui-panel" title="半年工作总结" style="height:200px;padding:10px;">
		
		<table class="table-trtd">
			<tr>
				<%
					for(int i=0;i<=2;i++)
					{
						
				%>
					<td><a href="javascript:departmentSummary('<%=(String)yearhatestr.get(i) %>')"><%=((String)yearhatestr.get(i)).replace("-", "年") %>工作总结</a></td>
				<%
					}
				%>
			</tr>
			<tr>
				<%
					for(int i=3;i<=5;i++)
					{
						
				%>
					<td><a href="javascript:departmentSummary('<%=(String)yearhatestr.get(i) %>')"><%=((String)yearhatestr.get(i)).replace("-", "年") %>工作总结</a></td>
				<%
					}
				%>
			</tr>
		
		</table>
		
	</div>
	<div id="yearsummary" class="easyui-panel" title="年度工作总结" style="height:200px;padding:10px;">
		<table  class="table-trtd">
			<tr>
				<%
					for(int i=0;i<=2;i++)
					{
						
				%>
					<td><a href="<%=basePath%>tjsinfo/tjsoa/articles/Summary.do?method=departmentSummary&yearmonthstr=<%=(Integer)yearList.get(i) %>"><%=(Integer)yearList.get(i) %>年工作总结</a></td>
				<%
					}
				%>
			</tr>
			<tr>
				<%
					for(int i=3;i<=5;i++)
					{
						
				%>
					<td><a href="<%=basePath%>tjsinfo/tjsoa/articles/Summary.do?method=departmentSummary&yearmonthstr=<%=(Integer)yearList.get(i) %>"><%=(Integer)yearList.get(i) %>年工作总结</a></td>
				<%
					}
				%>
			</tr>
			
		</table>
	</div>
	<input type="hidden" value="<%=year%>" name="year" id="year"/>
	<input type="hidden" value="departmentSummary" name="method" id="method"/>
	<input type="hidden" value="" name="yearmonthstr" id="yearmonthstr"/>
	</form>
</body>
</html>
